package com.yzkj.cpjxc.business.domain;

import java.util.Date;

import org.apache.ibatis.type.Alias;

/**
 * 系统日志查询条件
 */
@Alias("SysLogQueryVo")
public class SysLogQueryVo extends SysLog {

	private static final long serialVersionUID = 2427906689682952735L;

	/**
	 * 注册开始时间
	 */
	private Date beginOperationTime;

	/**
	 * 注册结束时间
	 */
	private Date endOperationTime;

	public Date getBeginOperationTime() {
		return beginOperationTime;
	}

	public void setBeginOperationTime(Date beginOperationTime) {
		this.beginOperationTime = beginOperationTime;
	}

	public Date getEndOperationTime() {
		return endOperationTime;
	}

	public void setEndOperationTime(Date endOperationTime) {
		this.endOperationTime = endOperationTime;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((beginOperationTime == null) ? 0 : beginOperationTime.hashCode());
		result = prime * result + ((endOperationTime == null) ? 0 : endOperationTime.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		SysLogQueryVo other = (SysLogQueryVo) obj;
		if (beginOperationTime == null) {
			if (other.beginOperationTime != null)
				return false;
		} else if (!beginOperationTime.equals(other.beginOperationTime))
			return false;
		if (endOperationTime == null) {
			if (other.endOperationTime != null)
				return false;
		} else if (!endOperationTime.equals(other.endOperationTime))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "SysLogQueryVo [beginOperationTime=" + beginOperationTime + ", endOperationTime=" + endOperationTime + "]";
	}

}
